import store from '../store'

import {
    movieRequest
} from '../../api/index'

import {
    GETMOVIELISE
} from '../constnant/movieConst'


export const getMovieAction = () => {
    return async () => {
        const re = await movieRequest()
        store.dispatch({
            type:GETMOVIELISE ,
            data: re.data.data.list
        })
    }
}